home *** CD-ROM | disk | FTP | other *** search
- /*View Current*/
- options results
- getenvvar _FE_Name
- na=result
- ch = upper(right(na,4))
- if compare(ch,'.TEX') == 0 then name = left(na,length(na)-4)
- else name=na
- getenvvar _FE_Path
- path=result
- file=path||name||'.dvi'
- getenvvar _FE_Changes
- number=result
- if ~(number==0) then do
- rx stop sync 'rexx/autotex.edge'
- end
- else do
- if exists(file) then do
- r=lastpos(file,"/")
- lo=left(file,r)
- log=lo||'showdvi.log'
- address command 'TeX:bin/showdvi' file
- if ~(rc==0) then do
- changewindow leftedge 0 topedge 13 width 668 height 220
- requestnotify title ERROR string 'View Failed. See log.'
- new
- address value result
- activatewindow port result
- open files log
- window front
- changewindow leftedge 0 topedge 233 width 668 height 230
- end
- else address command delete log
- end
- /*else requestnotify title ERROR string file' does not exist, TeX it first.'*/
- else rx stop sync 'rexx/autotex.edge'
- end
-